package com.bz.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bz.entity.RoleEntity;
import com.bz.model.MenuDto;
import com.bz.model.RoleUrlDto;
import com.bz.model.UserRoleDto;

@Component
public interface RoleDao extends BaseMapper<RoleEntity> {
    /**
     * 获取菜单
     *
     * @return
     */
    public List<MenuDto> getMenu(Map<String, Object> parMap);

    /**
     * 获取用户URL
     *
     * @param uid
     * @return
     */
    public List<RoleUrlDto> getUrls(Long uid);

    /**
     * 获取角色
     *
     * @param uid
     * @return
     */
    public List<UserRoleDto> getUserRole(Map<String, Object> parMap);
}
